package com.lmt_15;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogBackTest {

    public static final Logger LOGGER = LoggerFactory.getLogger("logback");
    public static void main(String[] args) {
        try {
            LOGGER.info("该方法开始执行");
            div(10,0);
            LOGGER.info("方法执行成功");
        }catch (Exception e){
            LOGGER.error("方法执行失败");
        }
    }
    public static void div(int a, int b){
        LOGGER.debug("参数a" + a);
        LOGGER.debug("参数b" + b);
        int c = a / b;
        LOGGER.info("结果是："+c);

    }
}
